package com.apigen.platform.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

/**
 * 登录请求DTO
 *
 * @author API Generator Platform
 * @since 2025-09-24
 */
@Data
@Schema(description = "登录请求参数")
public class LoginRequest {

    @NotBlank(message = "账户名不能为空")
    @Size(min = 3, max = 50, message = "账户名长度必须在3-50个字符之间")
    @Schema(description = "账户名", example = "admin")
    private String accountName;

    @NotBlank(message = "密码不能为空")
    @Size(min = 6, max = 20, message = "密码长度必须在6-20个字符之间")
    @Schema(description = "密码", example = "123456")
    private String password;

    @Schema(description = "验证码", example = "1234")
    private String captcha;

    @Schema(description = "验证码Key", example = "captcha_key_123")
    private String captchaKey;

    @Schema(description = "记住我", example = "false")
    private Boolean rememberMe = false;
}
